package com.zhuiyi.yiqingbackend.service.impl;

import com.zhuiyi.yiqingbackend.domain.RecordUserTable;
import com.zhuiyi.yiqingbackend.mapper.RecordUserTableMapper;
import com.zhuiyi.yiqingbackend.service.RecordUserTableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RecordUserTableServiceImpl implements RecordUserTableService {

    @Resource
    private RecordUserTableMapper recordUserTableMapper;
    @Override
    public List<RecordUserTable> getRecordUserTables() {
        return recordUserTableMapper.getRecordUserTables();
    }

    @Override
    public boolean addRecordUserTable(RecordUserTable recordUserTable) {
        return recordUserTableMapper.addRecordUserTable(recordUserTable);
    }

    @Override
    public boolean delereRecordUserTableById(int id) {
        return recordUserTableMapper.delereRecordUserTableById(id);
    }

    @Override
    public boolean updateRecordUserTable(RecordUserTable recordUserTable) {
        return recordUserTableMapper.updateRecordUserTable(recordUserTable);
    }

    @Override
    public RecordUserTable getRecordUserTableById(int id) {
        return recordUserTableMapper.getRecordUserTableById(id);
    }
}
